DescribeTasks
Description
call DescribeTasks to query the progress of one or more asynchronous requests.
Request Method
POST
Request Path
/apsara/route/Ecs/DescribeTasks
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
PageSize | BODY | integer | No | 2 | the number of records per page set during paging query, the maximum value is 100 rows, and the default value is 10. |
TaskIds | BODY | string | No | t-bp1hvgwromzv32iq****,t-bp179lofu2pv768w**** | task ID, up to 100 tasks can be specified at a time, and the IDs are separated by half-width commas (,). |
EndTime | BODY | string | No | 2015-11-23T15:16:00Z | query by creation time to create the end point of the time interval. According to the ISO8601 standard, UTC +0 time is required in the format of yyyy-MM-ddTHH:mm:ssZ. |
PageNumber | BODY | integer | No | 1 | the page number of the query result, the starting value is 1, and the default value is 1. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
TaskAction | BODY | string | No | ImportImage | the interface name of the task operation. Value range: ImportImage: import image. ExportImage: 'export' image. |
StartTime | BODY | string | No | 2015-11-23T15:10:00Z | query by the creation time to create the starting point of the time interval. According to the ISO8601 standard, UTC +0 time is required in the format of yyyy-MM-ddTHH:mm:ssZ. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
TaskStatus | BODY | string | No | Finished | task status. Value range: Finished: completed. Processing: running. Pending: Waiting for execution. Deleted: canceled. Paused: Pause. Default value: None. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}